package org.jiuling.appletofwechat.enums;

import org.jiuling.network.tools.http.request.enums.RequestMethodEnum;

/**
 *  微信小程序api枚举
 * @author 紫灵
 * @date 2024年01月28日 22时37分33秒
 */
public enum AppletOfWeChatApiEnum {

    JS_CODE_2_SESSION("https://api.weixin.qq.com/sns/jscode2session", RequestMethodEnum.GET),
    GET_USER_PHONE_NUMBER("https://api.weixin.qq.com/wxa/business/getuserphonenumber",RequestMethodEnum.POST);

    /** API地址 */
    private String api;
    /** 请求方式 */
    private RequestMethodEnum requestMethod;

    public String getApi() {
        return api;
    }

    public RequestMethodEnum getRequestMethod() {
        return requestMethod;
    }

    AppletOfWeChatApiEnum(String api, RequestMethodEnum requestMethod) {
        this.api = api;
        this.requestMethod = requestMethod;
    }
}
